import 'package:json_annotation/json_annotation.dart';
part 'user_model.g.dart';

// dart run build_runner build --delete-conflicting-outputs
@JsonSerializable()
class UserModel {
  String? name;
  int? age;
  String? email;
  String? emailAddress;
  UserModel({this.name, this.age, this.emailAddress});

  factory UserModel.fromJson(Map<String, dynamic> json) =>
      _$UserModelFromJson(json);

  Map<String, dynamic> toJson() => _$UserModelToJson(this);
}
